package com.zycfc.zsf.boot.util.json;

import com.google.gson.reflect.*;
import com.google.gson.*;

public class NullStringToEmptyAdapterFactory implements TypeAdapterFactory
{
    public TypeAdapter create(final Gson gson, final TypeToken type) {
        final Class rawType = type.getRawType();
        if (rawType != String.class) {
            return null;
        }
        return new StringNullAdapter();
    }
}
